package com.glodon.ggzy.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.GenericGenerator;

/**
 * GgZfOrder entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "GG_ZF_ORDER")
public class GgZfOrder implements java.io.Serializable {

	// Fields    

	private String id;

	private String orderhid;

	private String ordercode;

	private String ordername;

	private String buyerid;

	private String sellerid;

	private Double quantity;

	private Double marketsum;

	private String ordertype;

	private String orderkind;

	private Double ordersum;

	private String buyername;

	private String buylinker;

	private String buyertel;

	private String sellername;

	private String selllinker;

	private String sellertel;

	private String changeorgid;

	private String createorgid;

	private String creator;

	private Date createtime;

	private String changer;

	private Date lasttime;

	private String remark;

	private String cancelreason;

	private String status;

	// Constructors

	/** default constructor */
	public GgZfOrder() {
	}

	/** full constructor */
	public GgZfOrder(String orderhid, String ordercode, String ordername, String buyerid, String sellerid, Double quantity, Double marketsum,
			String ordertype, String orderkind, Double ordersum, String buyername, String buylinker, String buyertel, String sellername,
			String selllinker, String sellertel, String changeorgid, String createorgid, String creator, Date createtime, String changer,
			Date lasttime, String remark, String cancelreason, String status) {
		this.orderhid = orderhid;
		this.ordercode = ordercode;
		this.ordername = ordername;
		this.buyerid = buyerid;
		this.sellerid = sellerid;
		this.quantity = quantity;
		this.marketsum = marketsum;
		this.ordertype = ordertype;
		this.orderkind = orderkind;
		this.ordersum = ordersum;
		this.buyername = buyername;
		this.buylinker = buylinker;
		this.buyertel = buyertel;
		this.sellername = sellername;
		this.selllinker = selllinker;
		this.sellertel = sellertel;
		this.changeorgid = changeorgid;
		this.createorgid = createorgid;
		this.creator = creator;
		this.createtime = createtime;
		this.changer = changer;
		this.lasttime = lasttime;
		this.remark = remark;
		this.cancelreason = cancelreason;
		this.status = status;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "uuid.hex")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "ID", unique = true, nullable = false, length = 100)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "ORDERHID", length = 100)
	public String getOrderhid() {
		return this.orderhid;
	}

	public void setOrderhid(String orderhid) {
		this.orderhid = orderhid;
	}

	@Column(name = "ORDERCODE", length = 80)
	public String getOrdercode() {
		return this.ordercode;
	}

	public void setOrdercode(String ordercode) {
		this.ordercode = ordercode;
	}

	@Column(name = "ORDERNAME", length = 80)
	public String getOrdername() {
		return this.ordername;
	}

	public void setOrdername(String ordername) {
		this.ordername = ordername;
	}

	@Column(name = "BUYERID", length = 100)
	public String getBuyerid() {
		return this.buyerid;
	}

	public void setBuyerid(String buyerid) {
		this.buyerid = buyerid;
	}

	@Column(name = "SELLERID", length = 100)
	public String getSellerid() {
		return this.sellerid;
	}

	public void setSellerid(String sellerid) {
		this.sellerid = sellerid;
	}

	@Column(name = "QUANTITY", precision = 30, scale = 10)
	public Double getQuantity() {
		return this.quantity;
	}

	public void setQuantity(Double quantity) {
		this.quantity = quantity;
	}

	@Column(name = "MARKETSUM", precision = 30, scale = 10)
	public Double getMarketsum() {
		return this.marketsum;
	}

	public void setMarketsum(Double marketsum) {
		this.marketsum = marketsum;
	}

	@Column(name = "ORDERTYPE", length = 80)
	public String getOrdertype() {
		return this.ordertype;
	}

	public void setOrdertype(String ordertype) {
		this.ordertype = ordertype;
	}

	@Column(name = "ORDERKIND", length = 80)
	public String getOrderkind() {
		return this.orderkind;
	}

	public void setOrderkind(String orderkind) {
		this.orderkind = orderkind;
	}

	@Column(name = "ORDERSUM", precision = 30, scale = 10)
	public Double getOrdersum() {
		return this.ordersum;
	}

	public void setOrdersum(Double ordersum) {
		this.ordersum = ordersum;
	}

	@Column(name = "BUYERNAME", length = 80)
	public String getBuyername() {
		return this.buyername;
	}

	public void setBuyername(String buyername) {
		this.buyername = buyername;
	}

	@Column(name = "BUYLINKER", length = 80)
	public String getBuylinker() {
		return this.buylinker;
	}

	public void setBuylinker(String buylinker) {
		this.buylinker = buylinker;
	}

	@Column(name = "BUYERTEL", length = 80)
	public String getBuyertel() {
		return this.buyertel;
	}

	public void setBuyertel(String buyertel) {
		this.buyertel = buyertel;
	}

	@Column(name = "SELLERNAME", length = 80)
	public String getSellername() {
		return this.sellername;
	}

	public void setSellername(String sellername) {
		this.sellername = sellername;
	}

	@Column(name = "SELLLINKER", length = 80)
	public String getSelllinker() {
		return this.selllinker;
	}

	public void setSelllinker(String selllinker) {
		this.selllinker = selllinker;
	}

	@Column(name = "SELLERTEL", length = 80)
	public String getSellertel() {
		return this.sellertel;
	}

	public void setSellertel(String sellertel) {
		this.sellertel = sellertel;
	}

	@Column(name = "CHANGEORGID", length = 100)
	public String getChangeorgid() {
		return this.changeorgid;
	}

	public void setChangeorgid(String changeorgid) {
		this.changeorgid = changeorgid;
	}

	@Column(name = "CREATEORGID", length = 100)
	public String getCreateorgid() {
		return this.createorgid;
	}

	public void setCreateorgid(String createorgid) {
		this.createorgid = createorgid;
	}

	@Column(name = "CREATOR", length = 100)
	public String getCreator() {
		return this.creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}
	
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CREATETIME", length = 7)
	public Date getCreatetime() {
		return this.createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	@Column(name = "CHANGER", length = 100)
	public String getChanger() {
		return this.changer;
	}

	public void setChanger(String changer) {
		this.changer = changer;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "LASTTIME", length = 7)
	public Date getLasttime() {
		return this.lasttime;
	}

	public void setLasttime(Date lasttime) {
		this.lasttime = lasttime;
	}

	@Column(name = "REMARK", length = 500)
	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Column(name = "CANCELREASON", length = 500)
	public String getCancelreason() {
		return this.cancelreason;
	}

	public void setCancelreason(String cancelreason) {
		this.cancelreason = cancelreason;
	}

	@Column(name = "STATUS", length = 80)
	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

}
